<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Claude Code 五大核心功能深度解析 | 现代化UI设计</title>
    <style>
        /* 重置样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* 现代字体系统 */
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
            line-height: 1.7;
            color: #1a202c;
            background: #f8fafc;
            font-size: 16px;
            font-weight: 400;
        }

        /* 流体容器系统 */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* 现代导航栏 - 简洁设计 */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(226, 232, 240, 0.8);
            z-index: 1000;
            padding: 16px 0;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .nav-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .logo {
            font-size: 20px;
            font-weight: 700;
            color: #4f46e5;
            letter-spacing: -0.025em;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 32px;
        }

        .nav-links a {
            text-decoration: none;
            color: #64748b;
            font-weight: 500;
            font-size: 15px;
            transition: all 0.3s ease;
            padding: 8px 16px;
            border-radius: 8px;
            position: relative;
        }

        .nav-links a:hover {
            color: #4f46e5;
            background: rgba(79, 70, 229, 0.05);
        }

        /* Hero区域 - 现代简约风格 */
        .hero {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 160px 0 100px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hero-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23hero-pattern)"/></svg>');
        }

        .hero-content {
            position: relative;
            z-index: 2;
        }

        .hero h1 {
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 800;
            margin-bottom: 24px;
            letter-spacing: -0.02em;
            line-height: 1.1;
        }

        .hero .subtitle {
            font-size: clamp(1.1rem, 2vw, 1.4rem);
            margin-bottom: 32px;
            opacity: 0.9;
            font-weight: 400;
        }

        .hero .description {
            font-size: clamp(1rem, 1.5vw, 1.1rem);
            max-width: 800px;
            margin: 0 auto;
            opacity: 0.85;
            line-height: 1.6;
        }

        /* 现代卡片系统 */
        .section {
            padding: 80px 0;
        }

        .section:nth-child(even) {
            background: white;
        }

        .section-card {
            background: white;
            border-radius: 24px;
            padding: 60px;
            margin: 40px 0;
            box-shadow: 
                0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
            border: 1px solid rgba(226, 232, 240, 0.8);
            transition: all 0.3s ease;
        }

        .section-card:hover {
            transform: translateY(-4px);
            box-shadow: 
                0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }

        /* 标题系统 */
        .section-title {
            font-size: clamp(2rem, 4vw, 2.5rem);
            font-weight: 800;
            color: #1a202c;
            margin-bottom: 16px;
            text-align: center;
            letter-spacing: -0.025em;
            line-height: 1.2;
        }

        .section-subtitle {
            font-size: 1.125rem;
            color: #64748b;
            text-align: center;
            margin-bottom: 48px;
            font-weight: 400;
        }

        .subsection-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #374151;
            margin: 48px 0 24px 0;
            position: relative;
            padding-left: 20px;
        }

        .subsection-title::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 20px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 2px;
        }

        /* 网格系统 */
        .grid {
            display: grid;
            gap: 24px;
            margin: 40px 0;
        }

        .grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
        .grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
        .grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

        /* 功能卡片 */
        .feature-card {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 32px 24px;
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .feature-card:hover {
            transform: translateY(-8px);
            border-color: #667eea;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
        }

        .feature-card:hover::before {
            transform: scaleX(1);
        }

        .feature-icon {
            font-size: 2.5rem;
            margin-bottom: 20px;
            display: block;
        }

        .feature-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: #1a202c;
            margin-bottom: 12px;
        }

        .feature-text {
            color: #64748b;
            line-height: 1.6;
            font-size: 14px;
        }

        /* 表格系统 */
        .table-container {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            border: 1px solid #e2e8f0;
            margin: 32px 0;
        }

        .table {
            width: 100%;
            border-collapse: collapse;
        }

        .table th {
            background: #f8fafc;
            color: #374151;
            padding: 20px 16px;
            text-align: left;
            font-weight: 600;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            border-bottom: 1px solid #e2e8f0;
        }

        .table td {
            padding: 16px;
            border-bottom: 1px solid #f1f5f9;
            vertical-align: top;
        }

        .table tr:last-child td {
            border-bottom: none;
        }

        .table tr:hover {
            background: #f8fafc;
        }

        .code-inline {
            font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
            background: #f1f5f9;
            color: #475569;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 500;
        }

        /* 代码块 */
        .code-block {
            background: #1e293b;
            color: #e2e8f0;
            border-radius: 12px;
            padding: 24px;
            margin: 24px 0;
            font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
            font-size: 14px;
            line-height: 1.6;
            overflow-x: auto;
            position: relative;
        }

        .code-block::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #667eea, #764ba2);
        }

        .code-header {
            color: #94a3b8;
            font-size: 12px;
            margin-bottom: 16px;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }

        /* 配置层级可视化 */
        .config-hierarchy {
            display: flex;
            justify-content: space-between;
            margin: 32px 0;
            gap: 12px;
            flex-wrap: wrap;
        }

        .config-level {
            flex: 1;
            min-width: 160px;
            text-align: center;
        }

        .config-bar {
            color: white;
            padding: 20px 12px;
            border-radius: 12px;
            margin-bottom: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            min-height: 90px;
        }

        .config-bar::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s ease;
        }

        .config-bar:hover::before {
            left: 100%;
        }

        .config-bar:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        }

        /* 不同层级的颜色主题 */
        .config-bar.level-1 { 
            background: linear-gradient(135deg, #ef4444, #dc2626);
            border: 2px solid #fca5a5;
        }
        .config-bar.level-2 { 
            background: linear-gradient(135deg, #f59e0b, #d97706);
            border: 2px solid #fcd34d;
        }
        .config-bar.level-3 { 
            background: linear-gradient(135deg, #3b82f6, #2563eb);
            border: 2px solid #93c5fd;
        }
        .config-bar.level-4 { 
            background: linear-gradient(135deg, #10b981, #059669);
            border: 2px solid #6ee7b7;
        }
        .config-bar.level-5 { 
            background: linear-gradient(135deg, #8b5cf6, #7c3aed);
            border: 2px solid #c4b5fd;
        }

        .config-label {
            color: #64748b;
            font-size: 13px;
            font-weight: 600;
            margin-top: 4px;
        }

        .priority-badge {
            background: #f1f5f9;
            color: #475569;
            font-size: 12px;
            font-weight: 700;
            padding: 4px 12px;
            border-radius: 20px;
            margin-bottom: 8px;
            text-align: center;
            border: 1px solid #e2e8f0;
        }

        .config-arrow {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: #94a3b8;
            margin: 0 8px;
            min-width: 30px;
        }

        /* 信息框系统 */
        .info-box {
            background: #eff6ff;
            border: 1px solid #bfdbfe;
            border-left: 4px solid #3b82f6;
            border-radius: 8px;
            padding: 20px;
            margin: 24px 0;
        }

        .info-box.warning {
            background: #fefce8;
            border-color: #fde047;
            border-left-color: #eab308;
        }

        .info-box.success {
            background: #f0fdf4;
            border-color: #bbf7d0;
            border-left-color: #22c55e;
        }

        .info-box-title {
            font-weight: 600;
            color: #1e40af;
            margin-bottom: 8px;
        }

        .info-box.warning .info-box-title { color: #a16207; }
        .info-box.success .info-box-title { color: #15803d; }

        .info-box-content {
            color: #1e3a8a;
            line-height: 1.6;
        }

        .info-box.warning .info-box-content { color: #92400e; }
        .info-box.success .info-box-content { color: #166534; }

        /* 统计卡片 */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 24px;
            margin: 48px 0;
        }

        .stat-card {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 32px 24px;
            text-align: center;
            transition: all 0.3s ease;
        }

        .stat-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 800;
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1;
            margin-bottom: 8px;
        }

        .stat-label {
            color: #64748b;
            font-size: 14px;
            font-weight: 500;
        }

        /* 现代弹窗系统 */
        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.6);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            animation: modalBackdropFadeIn 0.3s ease-out;
        }

        @keyframes modalBackdropFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-content {
            background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
            margin: 3% auto;
            padding: 0;
            border-radius: 24px;
            width: 90%;
            max-width: 800px;
            max-height: 90vh;
            overflow: hidden;
            box-shadow: 
                0 32px 64px rgba(0, 0, 0, 0.12),
                0 8px 24px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.1);
            animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            border: 1px solid rgba(226, 232, 240, 0.8);
        }

        @keyframes modalSlideIn {
            from { 
                opacity: 0; 
                transform: translateY(-40px) scale(0.96);
            }
            to { 
                opacity: 1; 
                transform: translateY(0) scale(1);
            }
        }

        .modal-header {
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
            color: white;
            padding: 32px 40px 24px;
            position: relative;
            overflow: hidden;
        }

        .modal-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="modal-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23modal-pattern)"/></svg>');
        }

        .modal-close {
            position: absolute;
            top: 24px;
            right: 32px;
            width: 40px;
            height: 40px;
            border: none;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: rgba(255, 255, 255, 0.8);
            font-size: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }

        .modal-close:hover {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            transform: scale(1.1);
        }

        .modal-title {
            font-size: 1.75rem;
            font-weight: 800;
            color: white;
            margin: 0;
            position: relative;
            z-index: 5;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .modal-title::before {
            content: '';
            width: 4px;
            height: 28px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 2px;
        }

        .modal-body {
            padding: 40px;
            background: white;
            max-height: calc(90vh - 120px);
            overflow-y: auto;
        }

        .modal-body::-webkit-scrollbar {
            width: 8px;
        }

        .modal-body::-webkit-scrollbar-track {
            background: #f1f5f9;
            border-radius: 4px;
        }

        .modal-body::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 4px;
        }

        .modal-body::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

        .modal-section {
            margin-bottom: 32px;
        }

        .modal-section:last-child {
            margin-bottom: 0;
        }

        .modal-section h4 {
            font-size: 1.1rem;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .modal-section h4::before {
            content: '';
            width: 3px;
            height: 18px;
            background: linear-gradient(135deg, #4f46e5, #7c3aed);
            border-radius: 2px;
        }

        .modal-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .modal-list li {
            padding: 12px 0;
            border-bottom: 1px solid #f1f5f9;
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .modal-list li:last-child {
            border-bottom: none;
        }

        .modal-list strong {
            color: #4f46e5;
            font-weight: 600;
            min-width: 200px;
            font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
        }

        .modal-list span {
            color: #64748b;
            line-height: 1.6;
        }

        .modal-code-block {
            background: #1e293b;
            color: #e2e8f0;
            border-radius: 12px;
            padding: 24px;
            margin: 20px 0;
            font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
            font-size: 14px;
            line-height: 1.6;
            overflow-x: auto;
            position: relative;
        }

        .modal-code-block::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #4f46e5, #7c3aed);
        }

        .modal-code-header {
            color: #94a3b8;
            font-size: 12px;
            margin-bottom: 16px;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            font-weight: 600;
        }

        .modal-tag {
            display: inline-block;
            background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
            color: #0369a1;
            padding: 4px 12px;
            border-radius: 16px;
            font-size: 12px;
            font-weight: 600;
            margin: 4px 8px 4px 0;
            border: 1px solid #bae6fd;
        }

        .modal-highlight {
            background: linear-gradient(135deg, #fef3c7, #fde68a);
            color: #92400e;
            padding: 16px 20px;
            border-radius: 12px;
            margin: 20px 0;
            border-left: 4px solid #f59e0b;
        }

        .modal-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 16px;
            margin: 20px 0;
        }

        .modal-card {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 20px;
            transition: all 0.3s ease;
        }

        .modal-card:hover {
            background: #f1f5f9;
            border-color: #cbd5e1;
            transform: translateY(-2px);
        }

        .modal-card h5 {
            font-size: 14px;
            font-weight: 700;
            color: #374151;
            margin: 0 0 8px 0;
        }

        .modal-card p {
            font-size: 13px;
            color: #6b7280;
            margin: 0;
            line-height: 1.5;
        }

        /* 文档链接 */
        .doc-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 16px 24px;
            text-decoration: none;
            color: #4f46e5;
            font-weight: 600;
            transition: all 0.3s ease;
            margin-top: 32px;
        }

        .doc-link:hover {
            background: #4f46e5;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(79, 70, 229, 0.25);
        }

        /* 返回顶部 */
        .back-to-top {
            position: fixed;
            bottom: 32px;
            right: 32px;
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.3s ease;
            opacity: 0;
            transform: translateY(100px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        .back-to-top.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .back-to-top:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
        }

        /* 标签页系统 */
        .tabs {
            display: flex;
            border-bottom: 2px solid #e2e8f0;
            margin-bottom: 32px;
        }

        .tab {
            padding: 12px 24px;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 16px;
            font-weight: 500;
            color: #64748b;
            transition: all 0.3s ease;
            border-bottom: 2px solid transparent;
        }

        .tab.active {
            color: #4f46e5;
            border-bottom-color: #4f46e5;
        }

        .tab:hover {
            color: #4f46e5;
            background: rgba(79, 70, 229, 0.05);
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

                 /* 响应式设计 */
         @media (max-width: 768px) {
             .nav-links { display: none; }
             .hero { padding: 120px 0 80px; }
             .section { padding: 60px 0; }
             .section-card { padding: 40px 24px; }
             .config-hierarchy { 
                 flex-direction: column; 
                 gap: 20px;
             }
             .config-bar { 
                 height: auto !important; 
                 min-height: 80px; 
             }
             .config-arrow { 
                 transform: rotate(90deg); 
                 margin: 0;
             }
             .priority-badge {
                 margin-bottom: 12px;
             }
             .container { padding: 0 16px; }
             .tabs { overflow-x: auto; }
             
             /* 弹窗响应式 */
             .modal-content {
                 width: 95%;
                 margin: 5% auto;
                 max-height: 95vh;
             }
             
             .modal-header {
                 padding: 24px 20px 20px;
             }
             
             .modal-title {
                 font-size: 1.5rem;
             }
             
             .modal-close {
                 top: 20px;
                 right: 20px;
                 width: 36px;
                 height: 36px;
             }
             
             .modal-body {
                 padding: 24px 20px;
             }
             
             .modal-grid {
                 grid-template-columns: 1fr;
             }
             
             .modal-list strong {
                 min-width: auto;
                 display: block;
                 margin-bottom: 4px;
             }
             
             .modal-list li {
                 flex-direction: column;
                 align-items: flex-start;
                 gap: 4px;
             }
         }

        @media (max-width: 480px) {
            .section-card { padding: 32px 20px; }
            .modal-content { padding: 24px; margin: 10% auto; }
        }

        /* 动画 */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 0.6s ease-out forwards;
        }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* 延迟动画 */
        .fade-in:nth-child(1) { animation-delay: 0.1s; }
        .fade-in:nth-child(2) { animation-delay: 0.2s; }
        .fade-in:nth-child(3) { animation-delay: 0.3s; }
        .fade-in:nth-child(4) { animation-delay: 0.4s; }
        .fade-in:nth-child(5) { animation-delay: 0.5s; }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar">
        <div class="nav-content">
            <div class="logo">Claude Code</div>
            <ul class="nav-links">
                <li><a href="#cli">CLI命令</a></li>
                <li><a href="#slash">斜杠命令</a></li>
                <li><a href="#settings">Settings</a></li>
                <li><a href="#memory">内存管理</a></li>
                <li><a href="#mcp">MCP协议</a></li>
            </ul>
        </div>
    </nav>

    <!-- Hero区域 -->
    <section class="hero">
        <div class="container">
            <div class="hero-content">
                <h1>Claude Code 五大核心功能</h1>
                <p class="subtitle">代理式编程的革命性突破</p>
                <p class="description">
                    深入探索Claude Code的CLI命令、斜杠命令、Settings设置、内存管理和MCP协议，
                    掌握这款终端原生AI编程工具的精髓，开启高效的代理式开发之旅。
                </p>
            </div>
        </div>
    </section>

    <!-- CLI命令 -->
    <section id="cli" class="section">
        <div class="container">
            <div class="section-card fade-in">
                <h2 class="section-title">🖥️ CLI命令</h2>
                <p class="section-subtitle">终端原生的强大体验</p>

                <h3 class="subsection-title">核心CLI命令</h3>
                <div class="table-container">
                    <table class="table">
                        <thead>
                            <tr>
                                <th>命令</th>
                                <th>描述</th>
                                <th>示例</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td><code class="code-inline">claude</code></td>
                                <td>启动交互式 REPL</td>
                                <td><code class="code-inline">claude</code></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">claude "query"</code></td>
                                <td>使用初始提示启动 REPL</td>
                                <td><code class="code-inline">claude "explain this project"</code></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">claude -p "query"</code></td>
                                <td>通过 SDK 查询，然后退出</td>
                                <td><code class="code-inline">claude -p "explain this function"</code></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">cat file | claude -p "query"</code></td>
                                <td>处理管道内容</td>
                                <td><code class="code-inline">cat logs.txt | claude -p "explain"</code></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">claude -c</code></td>
                                <td>继续最近的对话</td>
                                <td><code class="code-inline">claude -c</code></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">claude -r "session-id"</code></td>
                                <td>通过会话ID恢复对话</td>
                                <td><code class="code-inline">claude -r "abc123" "Finish this PR"</code></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">claude update</code></td>
                                <td>更新到最新版本</td>
                                <td><code class="code-inline">claude update</code></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">claude mcp</code></td>
                                <td>配置MCP服务器</td>
                                <td><code class="code-inline">claude mcp</code></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">claude config</code></td>
                                <td>管理配置设置</td>
                                <td><code class="code-inline">claude config set theme dark</code></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">claude doctor</code></td>
                                <td>检查安装和配置</td>
                                <td><code class="code-inline">claude doctor</code></td>
                            </tr>
                        </tbody>
                    </table>
                </div>

                <h3 class="subsection-title">CLI 标志选项</h3>
                <div class="table-container">
                    <table class="table">
                        <thead>
                            <tr>
                                <th>标志</th>
                                <th>描述</th>
                                <th>示例</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td><code class="code-inline">--model</code></td>
                                <td>设置使用的模型</td>
                                <td><code class="code-inline">claude --model claude-sonnet-4</code></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">--verbose</code></td>
                                <td>启用详细日志记录</td>
                                <td><code class="code-inline">claude --verbose</code></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">--permission-mode</code></td>
                                <td>设置权限模式</td>
                                <td><code class="code-inline">claude --permission-mode plan</code></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">--dangerously-skip-permissions</code></td>
                                <td>跳过权限提示（谨慎使用）</td>
                                <td><code class="code-inline">claude --dangerously-skip-permissions</code></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">--output-format</code></td>
                                <td>指定输出格式</td>
                                <td><code class="code-inline">claude -p "query" --output-format json</code></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">--max-turns</code></td>
                                <td>限制代理轮次数</td>
                                <td><code class="code-inline">claude -p --max-turns 3 "query"</code></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">--add-dir</code></td>
                                <td>添加额外的工作目录</td>
                                <td><code class="code-inline">claude --add-dir ../docs ../lib</code></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">--allowedTools</code></td>
                                <td>允许的工具列表</td>
                                <td><code class="code-inline">claude --allowedTools "Read" "Edit"</code></td>
                            </tr>
                        </tbody>
                    </table>
                </div>

                <div style="text-align: center;">
                    <a href="https://docs.anthropic.com/zh-CN/docs/claude-code/cli-reference" 
                       class="doc-link" target="_blank">
                        📚 查看完整CLI文档
                    </a>
                </div>
            </div>
        </div>
    </section>

    <!-- 斜杠命令 -->
    <section id="slash" class="section">
        <div class="container">
            <div class="section-card fade-in">
                <h2 class="section-title">⚡ 斜杠命令</h2>
                <p class="section-subtitle">高效操作的快捷键</p>

                <div class="tabs">
                    <button class="tab active" onclick="showTab('builtin')">内置斜杠命令</button>
                    <button class="tab" onclick="showTab('custom')">自定义斜杠命令</button>
                    <button class="tab" onclick="showTab('mcp-slash')">MCP斜杠命令</button>
                </div>

                <div id="builtin" class="tab-content active">
                    <h3 class="subsection-title">内置斜杠命令列表</h3>
                    <div class="table-container">
                        <table class="table">
                            <thead>
                                <tr>
                                    <th>命令</th>
                                    <th>分类</th>
                                    <th>功能描述</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td><code class="code-inline">/clear</code></td>
                                    <td>对话管理</td>
                                    <td>清空当前对话历史</td>
                                </tr>
                                <tr>
                                    <td><code class="code-inline">/compact</code></td>
                                    <td>对话管理</td>
                                    <td>智能压缩对话历史</td>
                                </tr>
                                <tr>
                                    <td><code class="code-inline">/cost</code></td>
                                    <td>成本管理</td>
                                    <td>查看Token使用量和费用</td>
                                </tr>
                                <tr>
                                    <td><code class="code-inline">/init</code></td>
                                    <td>项目管理</td>
                                    <td>生成或更新CLAUDE.md文件</td>
                                </tr>
                                <tr>
                                    <td><code class="code-inline">/memory</code></td>
                                    <td>内存管理</td>
                                    <td>编辑内存文件</td>
                                </tr>
                                <tr>
                                    <td><code class="code-inline">/model</code></td>
                                    <td>配置管理</td>
                                    <td>切换Claude模型</td>
                                </tr>
                                <tr>
                                    <td><code class="code-inline">/permissions</code></td>
                                    <td>权限管理</td>
                                    <td>管理工具权限</td>
                                </tr>
                                <tr>
                                    <td><code class="code-inline">/vim</code></td>
                                    <td>编辑器</td>
                                    <td>启用Vim编辑模式</td>
                                </tr>
                                <tr>
                                    <td><code class="code-inline">/help</code></td>
                                    <td>帮助</td>
                                    <td>显示帮助信息</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>

                <div id="custom" class="tab-content">
                    <h3 class="subsection-title">自定义斜杠命令</h3>
                    <div class="grid grid-3">
                        <div class="feature-card fade-in">
                            <div class="feature-icon">🛠️</div>
                            <h3 class="feature-title">命令创建</h3>
                            <p class="feature-text">在.claude/commands/目录下创建Markdown文件，封装团队专属工作流</p>
                        </div>
                        <div class="feature-card fade-in">
                            <div class="feature-icon">🔄</div>
                            <h3 class="feature-title">参数传递</h3>
                            <p class="feature-text">使用$ARGUMENTS变量在自定义命令中处理用户输入参数</p>
                        </div>
                        <div class="feature-card fade-in">
                            <div class="feature-icon">📚</div>
                            <h3 class="feature-title">分层管理</h3>
                            <p class="feature-text">项目级和全局级命令分层管理，满足不同场景需求</p>
                        </div>
                    </div>

                    <div class="code-block">
                        <div class="code-header">自定义斜杠命令示例</div>
                        <pre># 创建命令文件: .claude/commands/review.md

请对$ARGUMENTS指定的文件执行代码审查：
1. 检查TypeScript和React最佳实践
2. 验证错误处理逻辑
3. 确保无障碍设计标准
4. 评估单元测试覆盖率

# 使用示例：
/review src/components/Button.tsx</pre>
                    </div>

                    <div class="info-box">
                        <div class="info-box-title">💡 自定义命令位置</div>
                        <div class="info-box-content">
                            <strong>项目级：</strong>.claude/commands/ (团队共享)<br>
                            <strong>全局级：</strong>~/.claude/commands/ (个人使用)
                        </div>
                    </div>
                </div>

                <div id="mcp-slash" class="tab-content">
                    <h3 class="subsection-title">MCP斜杠命令</h3>
                    <div class="table-container">
                        <table class="table">
                            <thead>
                                <tr>
                                    <th>命令</th>
                                    <th>功能描述</th>
                                    <th>使用示例</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td><code class="code-inline">/mcp</code></td>
                                    <td>启动MCP配置向导</td>
                                    <td><code class="code-inline">/mcp</code></td>
                                </tr>
                                <tr>
                                    <td><code class="code-inline">/mcp:add</code></td>
                                    <td>添加新的MCP服务器</td>
                                    <td><code class="code-inline">/mcp:add postgres-server</code></td>
                                </tr>
                                <tr>
                                    <td><code class="code-inline">/mcp:list</code></td>
                                    <td>列出已配置的MCP服务器</td>
                                    <td><code class="code-inline">/mcp:list</code></td>
                                </tr>
                                <tr>
                                    <td><code class="code-inline">/mcp:status</code></td>
                                    <td>查看MCP服务器连接状态</td>
                                    <td><code class="code-inline">/mcp:status</code></td>
                                </tr>
                                <tr>
                                    <td><code class="code-inline">/mcp:serve</code></td>
                                    <td>将Claude Code作为MCP服务器运行</td>
                                    <td><code class="code-inline">/mcp:serve</code></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>

                    <div class="code-block">
                        <div class="code-header">MCP斜杠命令使用示例</div>
                        <pre># 添加GitHub MCP服务器
/mcp:add github-server @modelcontextprotocol/server-github

# 使用MCP工具查询GitHub
> 请使用 @github 查询最近的提交记录

# 使用数据库MCP服务器查询数据
> 使用 @postgres 查询用户表中的活跃用户统计

# 组合多个MCP服务器
> 从 @github 获取PR信息，然后使用 @slack 发送通知</pre>
                    </div>
                </div>

                <div style="text-align: center;">
                    <a href="https://docs.anthropic.com/zh-CN/docs/claude-code/slash-commands" 
                       class="doc-link" target="_blank">
                        📚 查看斜杠命令文档
                    </a>
                </div>
            </div>
        </div>
    </section>

    <!-- Settings设置 -->
    <section id="settings" class="section">
        <div class="container">
            <div class="section-card fade-in">
                <h2 class="section-title">⚙️ Settings设置</h2>
                <p class="section-subtitle">五层配置体系，精确控制AI行为</p>

                <div class="info-box">
                    <div class="info-box-title">🎯 什么是Settings设置？</div>
                    <div class="info-box-content">
                        Settings设置是Claude Code的核心配置系统，通过分层设置文件（settings.json）来控制AI代理如何与您的代码库交互。
                        它决定了权限管理、工具访问、环境变量等关键行为，在自动化便利性和操作安全性之间找到最佳平衡点。
                    </div>
                </div>

                <h3 class="subsection-title">Settings的核心作用</h3>
                <div class="grid grid-3">
                    <div class="feature-card fade-in">
                        <div class="feature-icon">🛡️</div>
                        <h3 class="feature-title">安全控制</h3>
                        <p class="feature-text">通过精细的权限规则控制AI可以执行的操作。</p>
                    </div>
                    <div class="feature-card fade-in">
                        <div class="feature-icon">⚡</div>
                        <h3 class="feature-title">性能优化</h3>
                        <p class="feature-text">配置模型选择、清理周期、输出限制来优化响应质量。</p>
                    </div>
                    <div class="feature-card fade-in">
                        <div class="feature-icon">👥</div>
                        <h3 class="feature-title">团队协作</h3>
                        <p class="feature-text">项目级配置确保团队成员使用一致的AI行为标准。</p>
                    </div>
                </div>

                                 <h3 class="subsection-title">五层配置文件体系</h3>
                 <div class="info-box">
                     <div class="info-box-title">📋 配置优先级说明</div>
                     <div class="info-box-content">
                         Claude Code使用分层配置系统，高优先级的设置会覆盖低优先级的设置。
                         从上到下优先级递减，越往上的配置越优先生效。
                     </div>
                 </div>

                 <div class="config-hierarchy">
                     <div class="config-level">
                         <div class="priority-badge">优先级 1</div>
                         <div class="config-bar level-1" onclick="showConfigModal('enterprise')">
                             <strong>企业策略</strong><br>
                             <small>managed-settings.json</small>
                         </div>
                         <div class="config-label">🔒 最高优先级</div>
                     </div>
                     <div class="config-arrow">→</div>
                     <div class="config-level">
                         <div class="priority-badge">优先级 2</div>
                         <div class="config-bar level-2" onclick="showConfigModal('cmdline')">
                             <strong>命令行参数</strong><br>
                             <small>--flag arguments</small>
                         </div>
                         <div class="config-label">⚡ 临时覆盖</div>
                     </div>
                     <div class="config-arrow">→</div>
                     <div class="config-level">
                         <div class="priority-badge">优先级 3</div>
                         <div class="config-bar level-3" onclick="showConfigModal('local')">
                             <strong>本地项目设置</strong><br>
                             <small>.claude/settings.local.json</small>
                         </div>
                         <div class="config-label">👤 个人配置</div>
                     </div>
                     <div class="config-arrow">→</div>
                     <div class="config-level">
                         <div class="priority-badge">优先级 4</div>
                         <div class="config-bar level-4" onclick="showConfigModal('project')">
                             <strong>共享项目设置</strong><br>
                             <small>.claude/settings.json</small>
                         </div>
                         <div class="config-label">👥 团队共享</div>
                     </div>
                     <div class="config-arrow">→</div>
                     <div class="config-level">
                         <div class="priority-badge">优先级 5</div>
                         <div class="config-bar level-5" onclick="showConfigModal('user')">
                             <strong>用户全局设置</strong><br>
                             <small>~/.claude/settings.json</small>
                         </div>
                         <div class="config-label">🌍 默认配置</div>
                     </div>
                 </div>

                 <div class="table-container" style="margin-top: 32px;">
                     <table class="table">
                         <thead>
                             <tr>
                                 <th>优先级</th>
                                 <th>配置类型</th>
                                 <th>文件位置</th>
                                 <th>作用域</th>
                                 <th>Git状态</th>
                             </tr>
                         </thead>
                         <tbody>
                             <tr style="background: rgba(239, 68, 68, 0.1);">
                                 <td><strong>1</strong></td>
                                 <td>企业策略</td>
                                 <td><code class="code-inline">/etc/claude-code/managed-settings.json</code></td>
                                 <td>系统级强制</td>
                                 <td>❌ 系统管理</td>
                             </tr>
                             <tr style="background: rgba(245, 158, 11, 0.1);">
                                 <td><strong>2</strong></td>
                                 <td>命令行参数</td>
                                 <td><code class="code-inline">--model --permission-mode</code></td>
                                 <td>当前会话</td>
                                 <td>❌ 临时设置</td>
                             </tr>
                             <tr style="background: rgba(59, 130, 246, 0.1);">
                                 <td><strong>3</strong></td>
                                 <td>本地项目</td>
                                 <td><code class="code-inline">.claude/settings.local.json</code></td>
                                 <td>个人项目偏好</td>
                                 <td>🚫 自动忽略</td>
                             </tr>
                             <tr style="background: rgba(16, 185, 129, 0.1);">
                                 <td><strong>4</strong></td>
                                 <td>共享项目</td>
                                 <td><code class="code-inline">.claude/settings.json</code></td>
                                 <td>团队协作配置</td>
                                 <td>✅ 提交到Git</td>
                             </tr>
                             <tr style="background: rgba(139, 92, 246, 0.1);">
                                 <td><strong>5</strong></td>
                                 <td>用户全局</td>
                                 <td><code class="code-inline">~/.claude/settings.json</code></td>
                                 <td>跨项目默认</td>
                                 <td>❌ 个人文件</td>
                             </tr>
                         </tbody>
                     </table>
                 </div>

                <h3 class="subsection-title">可用设置选项</h3>
                <div class="table-container">
                    <table class="table">
                        <thead>
                            <tr>
                                <th>设置项</th>
                                <th>描述</th>
                                <th>示例值</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td><code class="code-inline">apiKeyHelper</code></td>
                                <td>API密钥获取脚本</td>
                                <td>"echo 'sk-**'"</td>
                                <td><button onclick="showSettingModal('apiKeyHelper')" style="background: #4f46e5; color: white; border: none; padding: 4px 8px; border-radius: 4px; cursor: pointer;">详情</button></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">permissions</code></td>
                                <td>权限控制配置</td>
                                <td>{"allow": [...], "deny": [...]}</td>
                                <td><button onclick="showSettingModal('permissions')" style="background: #4f46e5; color: white; border: none; padding: 4px 8px; border-radius: 4px; cursor: pointer;">详情</button></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">env</code></td>
                                <td>环境变量配置</td>
                                <td>{"NODE_ENV": "production"}</td>
                                <td><button onclick="showSettingModal('env')" style="background: #4f46e5; color: white; border: none; padding: 4px 8px; border-radius: 4px; cursor: pointer;">详情</button></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">model</code></td>
                                <td>默认使用的模型</td>
                                <td>"claude-3-5-sonnet-20241022"</td>
                                <td>-</td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">cleanupPeriodDays</code></td>
                                <td>聊天记录保留天数</td>
                                <td>30</td>
                                <td>-</td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">hooks</code></td>
                                <td>工具执行前后的钩子</td>
                                <td>{"PreToolUse": {...}}</td>
                                <td><button onclick="showSettingModal('hooks')" style="background: #4f46e5; color: white; border: none; padding: 4px 8px; border-radius: 4px; cursor: pointer;">详情</button></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">forceLoginMethod</code></td>
                                <td>强制登录方式</td>
                                <td>"claudeai" 或 "console"</td>
                                <td><button onclick="showSettingModal('forceLoginMethod')" style="background: #4f46e5; color: white; border: none; padding: 4px 8px; border-radius: 4px; cursor: pointer;">详情</button></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">enableAllProjectMcpServers</code></td>
                                <td>自动批准所有项目MCP服务器</td>
                                <td>true / false</td>
                                <td>-</td>
                            </tr>
                        </tbody>
                    </table>
                </div>

                <div class="code-block">
                    <div class="code-header">完整settings.json示例</div>
                    <pre>{
  "permissions": {
    "allow": [
      "Bash(npm run lint)",
      "Bash(npm run test:*)",
      "Read(~/.zshrc)",
      "Edit(src/**/*.ts)"
    ],
    "deny": [
      "Bash(rm -rf *)",
      "Bash(curl:*)"
    ],
    "additionalDirectories": [
      "../docs/",
      "../shared/"
    ],
    "defaultMode": "acceptEdits"
  },
  "env": {
    "NODE_ENV": "development",
    "CLAUDE_CODE_ENABLE_TELEMETRY": "1"
  },
  "model": "claude-3-5-sonnet-20241022",
  "cleanupPeriodDays": 30,
  "hooks": {
    "PreToolUse": {
      "Bash": "echo 'Running command...'"
    }
  }
}</pre>
                </div>

                <div style="text-align: center;">
                    <a href="https://docs.anthropic.com/zh-CN/docs/claude-code/settings" 
                       class="doc-link" target="_blank">
                        📚 查看Settings配置文档
                    </a>
                </div>
            </div>
        </div>
    </section>

    <!-- 内存管理 -->
    <section id="memory" class="section">
        <div class="container">
            <div class="section-card fade-in">
                <h2 class="section-title">🧠 内存管理</h2>
                <p class="section-subtitle">AI的项目记忆系统</p>

                <div class="info-box">
                    <div class="info-box-title">📝 什么是CLAUDE.md文件？</div>
                    <div class="info-box-content">
                        CLAUDE.md文件是Claude Code的"大脑"，它是一个特殊的Markdown文件，
                        相当于给AI的项目说明书和行为指南。当Claude Code启动时，
                        会自动读取这个文件，将其内容作为高优先级的上下文信息。
                    </div>
                </div>

                <h3 class="subsection-title">内存文件类型与位置</h3>
                <div class="table-container">
                    <table class="table">
                        <thead>
                            <tr>
                                <th>文件类型</th>
                                <th>路径</th>
                                <th>作用域</th>
                                <th>Git状态</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td><strong>项目内存</strong></td>
                                <td>./CLAUDE.md</td>
                                <td>团队共享的项目宪法</td>
                                <td>✅ 提交到Git</td>
                            </tr>
                            <tr>
                                <td><strong>用户内存</strong></td>
                                <td>~/.claude/CLAUDE.md</td>
                                <td>个人全局偏好设置</td>
                                <td>❌ 不提交</td>
                            </tr>
                            <tr>
                                <td><strong>本地项目内存</strong></td>
                                <td>./CLAUDE.local.md</td>
                                <td>个人项目临时笔记</td>
                                <td>⚠️ 已废弃</td>
                            </tr>
                        </tbody>
                    </table>
                </div>

                <div class="info-box warning">
                    <div class="info-box-title">⚠️ 重要更新</div>
                    <div class="info-box-content">
                        <strong>./CLAUDE.local.md 已被废弃：</strong>根据官方文档，
                        本地项目内存文件 ./CLAUDE.local.md 已不再支持。
                        现在推荐使用项目级和用户级的CLAUDE.md文件来管理项目记忆。
                    </div>
                </div>

                <h3 class="subsection-title">内存管理核心功能</h3>
                <div class="grid grid-4">
                    <div class="feature-card fade-in" onclick="showMemoryModal('find')" style="cursor: pointer;">
                        <div class="feature-icon">🔍</div>
                        <h3 class="feature-title">查找内存</h3>
                        <p class="feature-text">自动递归查找项目目录中的所有CLAUDE.md文件。</p>
                    </div>
                    <div class="feature-card fade-in" onclick="showMemoryModal('add')" style="cursor: pointer;">
                        <div class="feature-icon">➕</div>
                        <h3 class="feature-title">添加内存</h3>
                        <p class="feature-text">使用#命令快速添加新的记忆条目。</p>
                    </div>
                    <div class="feature-card fade-in" onclick="showMemoryModal('import')" style="cursor: pointer;">
                        <div class="feature-icon">📁</div>
                        <h3 class="feature-title">文件导入</h3>
                        <p class="feature-text">使用@语法导入其他文档作为模块化内存。</p>
                    </div>
                    <div class="feature-card fade-in" onclick="showMemoryModal('dynamic')" style="cursor: pointer;">
                        <div class="feature-icon">🔄</div>
                        <h3 class="feature-title">动态加载</h3>
                        <p class="feature-text">子目录内存文件按需加载，优化token使用。</p>
                    </div>
                </div>

                <h3 class="subsection-title">内存管理命令详解</h3>
                <div class="grid grid-2">
                    <div class="feature-card fade-in">
                        <div class="feature-icon">🚀</div>
                        <h3 class="feature-title">/init 命令</h3>
                        <p class="feature-text">
                            自动分析项目并生成或更新CLAUDE.md文件：<br>
                            • 识别技术栈和架构<br>
                            • 分析代码结构和模式<br>
                            • 生成编码规范建议
                        </p>
                    </div>
                    <div class="feature-card fade-in">
                        <div class="feature-icon">💾</div>
                        <h3 class="feature-title">/memory 命令</h3>
                        <p class="feature-text">
                            打开默认编辑器编辑内存文件：<br>
                            • 大段内容修改<br>
                            • 结构化重组<br>
                            • 批量更新规则
                        </p>
                    </div>
                </div>

                <div class="grid grid-2">
                    <div class="feature-card fade-in">
                        <div class="feature-icon">#</div>
                        <h3 class="feature-title"># 快捷方式</h3>
                        <p class="feature-text">
                            快速添加记忆的最佳方式：<br>
                            • # 刚发现构建需要NODE_ENV<br>
                            • 提示选择保存位置<br>
                            • 自动格式化并追加
                        </p>
                    </div>
                    <!-- <div class="feature-card fade-in">
                        <div class="feature-icon">📋</div>
                        <h3 class="feature-title">查看内存状态</h3>
                        <p class="feature-text">
                            显示当前加载的内存文件：<br>
                            • 已加载的CLAUDE.md文件<br>
                            • 内存使用情况<br>
                            • 上下文信息统计
                        </p>
                    </div> -->
                </div>

                <h3 class="subsection-title">文件导入系统</h3>
                <div class="info-box">
                    <div class="info-box-title">💡 模块化内存管理</div>
                    <div class="info-box-content">
                        使用 @ 语法可以将大型内存文件拆分为多个模块，便于维护和管理：
                    </div>
                </div>

                <div class="code-block">
                    <div class="code-header">模块化CLAUDE.md示例</div>
                    <pre># 项目核心指令

## 基本信息
项目名称：MyApp
技术栈：Next.js + TypeScript + Tailwind

## 详细文档导入
@docs/api-guidelines.md
@docs/testing-strategy.md
@docs/deployment-guide.md

## 快速命令
- npm run dev: 启动开发服务器
- npm run test: 运行测试套件</pre>
                </div>

                <div class="code-block">
                    <div class="code-header">完整CLAUDE.md结构示例</div>
                    <pre># 项目核心指令

## 技术栈与架构
- 框架：Next.js 14+ (App Router)
- 语言：TypeScript (strict模式)
- 样式：Tailwind CSS
- 状态管理：Zustand
- 测试：Jest + Testing Library

## 常用命令
- `npm run dev` - 启动开发服务器
- `npm run test` - 运行测试
- `npm run build` - 构建生产版本
- `npm run lint` - 代码检查

## 编码规范
- 使用函数式组件和Hooks
- 所有导出函数必须有JSDoc注释
- 遵循Conventional Commits规范
- 组件文件使用PascalCase命名

## Git工作流
- 主分支：main
- 功能分支：feature/功能名称
- 提交格式：feat: 添加用户登录功能</pre>
                </div>

                <div style="text-align: center;">
                    <a href="https://docs.anthropic.com/zh-CN/docs/claude-code/memory-management" 
                       class="doc-link" target="_blank">
                        📚 查看内存管理文档
                    </a>
                </div>
            </div>
        </div>
    </section>

    <!-- MCP协议 -->
    <section id="mcp" class="section">
        <div class="container">
            <div class="section-card fade-in">
                <h2 class="section-title">🌐 MCP协议</h2>
                <p class="section-subtitle">模型上下文协议 - 连接万物的AI接口</p>

                <div class="info-box">
                    <div class="info-box-title">🎯 什么是MCP协议？</div>
                    <div class="info-box-content">
                        Model Context Protocol (MCP) 是由Anthropic开发的开放标准，用于标准化AI应用程序如何向大型语言模型提供上下文。
                        它就像AI的"USB-C接口"，让模型能够轻松连接到各种数据源和工具，如文件系统、数据库和API。
                    </div>
                </div>

                <h3 class="subsection-title">MCP架构原理</h3>
                <div style="text-align: center; margin: 40px 0;">
                    <div style="display: inline-block; padding: 40px; background: linear-gradient(135deg, #667eea, #764ba2); color: white; border-radius: 20px;">
                        <h3 style="margin: 0; font-size: 1.8rem;">客户端-主机-服务器架构</h3>
                        <p style="margin: 16px 0 0 0; opacity: 0.9;">基于JSON-RPC 2.0的状态会话协议</p>
                    </div>
                </div>

                <div class="grid grid-3">
                    <div class="feature-card fade-in">
                        <div class="feature-icon">🖥️</div>
                        <h3 class="feature-title">主机 (Host)</h3>
                        <p class="feature-text">
                            作为容器和协调器：<br>
                            • 创建和管理多个客户端实例<br>
                            • 控制连接权限和生命周期<br>
                            • 执行安全策略和用户授权<br>
                            • 协调AI/LLM集成和采样
                        </p>
                    </div>
                    <div class="feature-card fade-in">
                        <div class="feature-icon">🔗</div>
                        <h3 class="feature-title">客户端 (Client)</h3>
                        <p class="feature-text">
                            维护独立的服务器连接：<br>
                            • 与特定服务器建立1对1会话<br>
                            • 处理协议协商和能力交换<br>
                            • 双向路由协议消息<br>
                            • 管理订阅和通知
                        </p>
                    </div>
                    <div class="feature-card fade-in">
                        <div class="feature-icon">⚙️</div>
                        <h3 class="feature-title">服务器 (Server)</h3>
                        <p class="feature-text">
                            提供专门的上下文和功能：<br>
                            • 通过MCP原语暴露资源、工具和提示<br>
                            • 独立运行，专注特定职责<br>
                            • 通过客户端接口请求采样<br>
                            • 遵守安全约束
                        </p>
                    </div>
                </div>

                <h3 class="subsection-title">MCP三大核心功能</h3>
                <div class="grid grid-3">
                    <div class="feature-card fade-in">
                        <div class="feature-icon">📝</div>
                        <h3 class="feature-title">Prompts (提示)</h3>
                        <p class="feature-text">
                            预定义的模板或指令：<br>
                            • 用户控制的交互模式<br>
                            • 可通过斜杠命令触发<br>
                            • 支持参数化定制<br>
                            • 结构化消息格式
                        </p>
                    </div>
                    <div class="feature-card fade-in">
                        <div class="feature-icon">📊</div>
                        <h3 class="feature-title">Resources (资源)</h3>
                        <p class="feature-text">
                            结构化数据或内容：<br>
                            • 应用程序驱动的上下文<br>
                            • 通过URI唯一标识<br>
                            • 支持订阅变更通知<br>
                            • 文件、数据库模式等
                        </p>
                    </div>
                    <div class="feature-card fade-in">
                        <div class="feature-icon">🛠️</div>
                        <h3 class="feature-title">Tools (工具)</h3>
                        <p class="feature-text">
                            可执行的函数功能：<br>
                            • 模型控制的动态调用<br>
                            • 与外部系统交互<br>
                            • 查询数据库、调用API<br>
                            • 执行计算和操作
                        </p>
                    </div>
                </div>

                <h3 class="subsection-title">Claude Code中的MCP命令</h3>
                <div class="table-container">
                    <table class="table">
                        <thead>
                            <tr>
                                <th>命令</th>
                                <th>功能描述</th>
                                <th>使用示例</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td><code class="code-inline">claude mcp</code></td>
                                <td>启动MCP配置向导</td>
                                <td><code class="code-inline">claude mcp</code></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">claude mcp add</code></td>
                                <td>添加新的MCP服务器</td>
                                <td><code class="code-inline">claude mcp add postgres-server</code></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">claude mcp list</code></td>
                                <td>列出已配置的MCP服务器</td>
                                <td><code class="code-inline">claude mcp list</code></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">claude mcp status</code></td>
                                <td>查看MCP服务器连接状态</td>
                                <td><code class="code-inline">claude mcp status</code></td>
                            </tr>
                            <tr>
                                <td><code class="code-inline">claude mcp serve</code></td>
                                <td>将Claude Code作为MCP服务器运行</td>
                                <td><code class="code-inline">claude mcp serve</code></td>
                            </tr>
                        </tbody>
                    </table>
                </div>

                <h3 class="subsection-title">MCP服务器配置方式</h3>
                <div class="grid grid-3">
                    <div class="feature-card fade-in">
                        <div class="feature-icon">🏢</div>
                        <h3 class="feature-title">项目配置</h3>
                        <p class="feature-text">
                            在项目目录运行时可用：<br>
                            • 文件位置：.mcp.json<br>
                            • 团队共享配置<br>
                            • 版本控制管理
                        </p>
                    </div>
                    <div class="feature-card fade-in">
                        <div class="feature-icon">🌍</div>
                        <h3 class="feature-title">全局配置</h3>
                        <p class="feature-text">
                            在所有项目中可用：<br>
                            • 个人工具集<br>
                            • 常用服务器<br>
                            • 跨项目使用
                        </p>
                    </div>
                    <div class="feature-card fade-in">
                        <div class="feature-icon">✅</div>
                        <h3 class="feature-title">检入配置</h3>
                        <p class="feature-text">
                            .mcp.json文件：<br>
                            • 所有团队成员可用<br>
                            • 开箱即用体验<br>
                            • 标准化工具链
                        </p>
                    </div>
                </div>

                <div class="code-block">
                    <div class="code-header">MCP配置示例 (.mcp.json)</div>
                    <pre>{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "your-token"
      }
    },
    "postgres": {
      "command": "node",
      "args": ["/path/to/postgres-mcp-server"],
      "env": {
        "DATABASE_URL": "postgresql://user:pass@host:port/db"
      }
    }
  }
}</pre>
                </div>

                <div class="code-block">
                    <div class="code-header">MCP工具使用示例</div>
                    <pre># 使用GitHub MCP服务器查询代码仓库
> 请使用 @github 查询main分支最近10次提交记录

# 使用数据库MCP服务器查询数据
> 使用 @postgres 查询用户表中的活跃用户统计

# 组合多个MCP服务器
> 从 @github 获取PR信息，然后使用 @slack 发送通知</pre>
                </div>

                <h3 class="subsection-title">MCP的优势与特点</h3>
                <div class="grid grid-4">
                    <div class="feature-card fade-in">
                        <div class="feature-icon">🔧</div>
                        <h3 class="feature-title">标准化通信</h3>
                        <p class="feature-text">统一协议替代自定义API，确保一致的集成体验。</p>
                    </div>
                    <div class="feature-card fade-in">
                        <div class="feature-icon">🔍</div>
                        <h3 class="feature-title">动态工具发现</h3>
                        <p class="feature-text">AI自动检测和使用新工具，无需手动配置。</p>
                    </div>
                    <div class="feature-card fade-in">
                        <div class="feature-icon">🔒</div>
                        <h3 class="feature-title">安全控制</h3>
                        <p class="feature-text">内置身份认证和访问控制，保护数据交互。</p>
                    </div>
                    <div class="feature-card fade-in">
                        <div class="feature-icon">📈</div>
                        <h3 class="feature-title">高性能架构</h3>
                        <p class="feature-text">轻量级协议确保快速、实时通信。</p>
                    </div>
                </div>

                <div style="text-align: center;">
                    <a href="https://docs.anthropic.com/zh-CN/docs/claude-code/mcp" 
                       class="doc-link" target="_blank">
                        📚 查看MCP协议文档
                    </a>
                    <a href="https://modelcontextprotocol.io/" 
                       class="doc-link" target="_blank" style="margin-left: 16px;">
                        🌐 MCP官方网站
                    </a>
                </div>
            </div>
        </div>
    </section>

    <!-- 总结 -->
    <section class="section">
        <div class="container">
            <div class="section-card fade-in">
                <h2 class="section-title">🎯 总结</h2>
                <p class="section-subtitle">开启代理式编程新时代</p>

                <div class="grid grid-3">
                    <div class="feature-card fade-in">
                        <div class="feature-icon">🖥️</div>
                        <h3 class="feature-title">CLI - 原生体验</h3>
                        <p class="feature-text">终端原生设计，丰富的命令选项，无缝融入开发者工作流。</p>
                    </div>
                    <div class="feature-card fade-in">
                        <div class="feature-icon">⚡</div>
                        <h3 class="feature-title">斜杠 - 高效操作</h3>
                        <p class="feature-text">快捷命令体系，大幅提升操作效率。</p>
                    </div>
                    <div class="feature-card fade-in">
                        <div class="feature-icon">⚙️</div>
                        <h3 class="feature-title">设置 - 精准控制</h3>
                        <p class="feature-text">分层配置系统，平衡安全与便利。</p>
                    </div>
                    <div class="feature-card fade-in">
                        <div class="feature-icon">🧠</div>
                        <h3 class="feature-title">内存 - 智能记忆</h3>
                        <p class="feature-text">持久化上下文，让AI成为项目专家。</p>
                    </div>
                    <div class="feature-card fade-in">
                        <div class="feature-icon">🌐</div>
                        <h3 class="feature-title">MCP - 无限扩展</h3>
                        <p class="feature-text">开放协议连接万物，标准化集成，释放无限可能。</p>
                    </div>
                </div>

                <div style="text-align: center; margin-top: 60px; padding: 48px; background: linear-gradient(135deg, #667eea, #764ba2); color: white; border-radius: 20px;">
                    <h3 style="margin: 0 0 24px 0; font-size: 2rem;">🚀 立即开始Claude Code之旅</h3>
                    <p style="margin: 0 0 32px 0; font-size: 1.1rem; opacity: 0.9;">
                        从代码执行者到AI协调者，从重复劳动到创造性工作<br>
                        这不仅是工具的升级，更是开发者价值的升华
                    </p>
                    <div style="display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;">
                        <a href="https://docs.anthropic.com/zh-CN/docs/claude-code" 
                           style="color: white; text-decoration: none; padding: 12px 24px; background: rgba(255,255,255,0.2); border-radius: 10px; font-weight: 600;" 
                           target="_blank">中文文档</a>
                        <a href="https://github.com/anthropics/claude-code" 
                           style="color: white; text-decoration: none; padding: 12px 24px; background: rgba(255,255,255,0.2); border-radius: 10px; font-weight: 600;" 
                           target="_blank">GitHub</a>
                        <a href="https://modelcontextprotocol.io/" 
                           style="color: white; text-decoration: none; padding: 12px 24px; background: rgba(255,255,255,0.2); border-radius: 10px; font-weight: 600;" 
                           target="_blank">MCP官网</a>
                    </div>
                </div>
            </div>
        </div>
    </section>

         <!-- 配置弹窗 -->
     <div id="configModal" class="modal">
         <div class="modal-content">
             <div class="modal-header">
                 <h3 class="modal-title" id="modalTitle">配置详情</h3>
                 <button class="modal-close">&times;</button>
             </div>
             <div class="modal-body">
                 <div id="modalContent"></div>
             </div>
         </div>
     </div>

     <!-- 设置详情弹窗 -->
     <div id="settingModal" class="modal">
         <div class="modal-content">
             <div class="modal-header">
                 <h3 class="modal-title" id="settingModalTitle">设置详情</h3>
                 <button class="modal-close">&times;</button>
             </div>
             <div class="modal-body">
                 <div id="settingModalContent"></div>
             </div>
         </div>
     </div>

     <!-- 内存管理功能弹窗 -->
     <div id="memoryModal" class="modal">
         <div class="modal-content">
             <div class="modal-header">
                 <h3 class="modal-title" id="memoryModalTitle">内存管理功能详解</h3>
                 <button class="modal-close">&times;</button>
             </div>
             <div class="modal-body">
                 <div id="memoryModalContent"></div>
             </div>
         </div>
     </div>

    <!-- 返回顶部按钮 -->
    <button class="back-to-top" onclick="scrollToTop()">↑</button>

    <script>
        // 平滑滚动
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                const target = document.querySelector(this.getAttribute('href'));
                if (target) {
                    target.scrollIntoView({
                        behavior: 'smooth',
                        block: 'start'
                    });
                }
            });
        });

        // 返回顶部
        function scrollToTop() {
            window.scrollTo({ top: 0, behavior: 'smooth' });
        }

        // 显示/隐藏返回顶部按钮
        window.addEventListener('scroll', () => {
            const backToTop = document.querySelector('.back-to-top');
            if (window.pageYOffset > 300) {
                backToTop.classList.add('visible');
            } else {
                backToTop.classList.remove('visible');
            }
        });

        // 标签页切换
        function showTab(tabName) {
            // 隐藏所有标签页内容
            document.querySelectorAll('.tab-content').forEach(content => {
                content.classList.remove('active');
            });
            
            // 移除所有标签页的活动状态
            document.querySelectorAll('.tab').forEach(tab => {
                tab.classList.remove('active');
            });
            
            // 显示选中的标签页内容
            document.getElementById(tabName).classList.add('active');
            
            // 激活对应的标签页
            event.target.classList.add('active');
        }

        // 配置弹窗
        function showConfigModal(type) {
            const modal = document.getElementById('configModal');
            const title = document.getElementById('modalTitle');
            const content = document.getElementById('modalContent');
            
            const configData = {
                                 enterprise: {
                     title: '企业策略配置',
                     content: `
                         <div class="modal-section">
                             <h4>配置说明</h4>
                             <p>由系统管理员统一配置的强制性设置，个人用户无法覆盖。这是最高优先级的配置层级，确保企业安全策略的执行。</p>
                         </div>
                         
                         <div class="modal-section">
                             <h4>配置文件位置</h4>
                             <div class="modal-grid">
                                 <div class="modal-card">
                                     <h5>macOS</h5>
                                     <p>/Library/Application Support/ClaudeCode/managed-settings.json</p>
                                 </div>
                                 <div class="modal-card">
                                     <h5>Linux/WSL</h5>
                                     <p>/etc/claude-code/managed-settings.json</p>
                                 </div>
                                 <div class="modal-card">
                                     <h5>Windows</h5>
                                     <p>C:\\ProgramData\\ClaudeCode\\managed-settings.json</p>
                                 </div>
                             </div>
                         </div>
                         
                         <div class="modal-section">
                             <h4>配置示例</h4>
                             <div class="modal-code-block">
                                 <div class="modal-code-header">managed-settings.json</div>
                                 <pre>{
   "permissions": {
     "allow": ["Read", "Write"],
     "deny": ["Bash", "WebFetch"]
   },
   "model": "claude-3-5-sonnet-20241022",
   "maxTokens": 4096,
   "forceLoginMethod": "console"
}</pre>
                             </div>
                         </div>

                         <div class="modal-highlight">
                             <strong>注意：</strong>企业策略配置只能由系统管理员修改，用户无法通过其他方式覆盖这些设置。
                         </div>
                     `
                 },
                cmdline: {
                    title: '命令行参数配置',
                    content: `
                        <h4>配置说明：</h4>
                        <p>通过命令行参数传递的设置，仅对当前会话有效，优先级最高。</p>
                        
                        <h4>常用命令行参数：</h4>
                        <div class="code-block" style="margin: 16px 0;">
                            <pre># 设置模型
claude --model claude-3-5-sonnet-20241022

# 设置允许的工具
claude --allowedTools "Read" "Write" "Edit"

# 设置权限模式
claude --permission-mode auto</pre>
                        </div>
                    `
                },
                local: {
                    title: '本地项目配置',
                    content: `
                        <h4>配置说明：</h4>
                        <p>本地项目特定的个人配置，不会提交到版本控制。</p>
                        
                        <h4>配置文件位置：</h4>
                        <p><strong>.claude/settings.local.json</strong> (项目根目录)</p>
                        
                        <h4>示例配置：</h4>
                        <div class="code-block" style="margin: 16px 0;">
                            <pre>{
  "env": {
    "API_KEY": "local-dev-key",
    "DEBUG": "true"
  },
  "permissions": {
    "allow": [
      "Bash(npm run dev)",
      "Edit(src/**/*.test.ts)"
    ]
  }
}</pre>
                        </div>
                        
                        <h4>注意事项：</h4>
                        <ul>
                            <li>文件会自动添加到.gitignore</li>
                            <li>适合存放个人密钥和调试配置</li>
                            <li>优先级高于共享项目配置</li>
                        </ul>
                    `
                },
                project: {
                    title: '共享项目配置',
                    content: `
                        <h4>配置说明：</h4>
                        <p>项目级别的配置，团队成员共享，存储在项目根目录。</p>
                        
                        <h4>配置文件位置：</h4>
                        <p><strong>.claude/settings.json</strong> (项目根目录)</p>
                        
                        <h4>示例配置：</h4>
                        <div class="code-block" style="margin: 16px 0;">
                            <pre>{
  "model": "claude-3-5-sonnet-20241022",
  "permissions": {
    "allow": [
      "Bash(npm run test)",
      "Bash(git status)",
      "Edit(src/**/*.ts)"
    ],
    "deny": [
      "Bash(rm -rf *)",
      "Bash(sudo *)"
    ]
  },
  "env": {
    "NODE_ENV": "development"
  }
}</pre>
                        </div>
                        
                        <h4>最佳实践：</h4>
                        <ul>
                            <li>提交到版本控制系统</li>
                            <li>团队统一的权限策略</li>
                            <li>避免包含敏感信息</li>
                        </ul>
                    `
                },
                user: {
                    title: '用户全局配置',
                    content: `
                        <h4>配置说明：</h4>
                        <p>用户个人的全局默认设置，应用于所有项目。</p>
                        
                        <h4>配置文件位置：</h4>
                        <p><strong>~/.claude/settings.json</strong></p>
                        
                        <h4>示例配置：</h4>
                        <div class="code-block" style="margin: 16px 0;">
                            <pre>{
  "model": "claude-3-5-sonnet-20241022",
  "theme": "dark",
  "verbose": false,
  "autoUpdates": true,
  "permissions": {
    "defaultMode": "interactive"
  }
}</pre>
                        </div>
                        
                        <h4>命令行配置：</h4>
                        <div class="code-block" style="margin: 16px 0;">
                            <pre># 通过CLI配置用户全局设置
claude config set -g theme dark
claude config set -g model claude-3-5-sonnet-20241022
claude config list -g  # 查看全局配置</pre>
                        </div>
                    `
                }
            };
            
            const data = configData[type];
            if (data) {
                title.textContent = data.title;
                content.innerHTML = data.content;
                modal.style.display = 'block';
            }
        }

        // 设置详情弹窗
        function showSettingModal(setting) {
            const modal = document.getElementById('settingModal');
            const title = document.getElementById('settingModalTitle');
            const content = document.getElementById('settingModalContent');
            
            const settingData = {
                permissions: {
                    title: '权限设置详解',
                    content: `
                        <div class="modal-section">
                            <h4>权限控制系统</h4>
                            <p>Claude Code使用精细的权限规则来控制AI可以执行的操作，确保安全性和可控性。</p>
                        </div>
                        
                        <div class="modal-section">
                            <h4>权限规则格式</h4>
                            <div class="modal-code-block">
                                <div class="modal-code-header">permissions 配置示例</div>
                                <pre>{
  "permissions": {
    "allow": [
      "Read",                    // 允许读取所有文件
      "Edit(src/**/*.ts)",       // 允许编辑TypeScript文件
      "Bash(git:*)",            // 允许所有git命令
      "Bash(npm run test:*)"     // 允许测试相关npm脚本
    ],
    "deny": [
      "Bash(rm -rf *)",         // 禁止删除命令
      "Bash(sudo *)",           // 禁止sudo命令
      "WebFetch"                // 禁止网络请求
    ],
    "defaultMode": "interactive"
  }
}</pre>
                            </div>
                        </div>
                        
                        <div class="modal-section">
                            <h4>权限模式</h4>
                            <div class="modal-grid">
                                <div class="modal-card">
                                    <h5>interactive</h5>
                                    <p>每次操作都请求用户确认，最安全的模式</p>
                                </div>
                                <div class="modal-card">
                                    <h5>acceptEdits</h5>
                                    <p>自动允许文件编辑操作，但其他操作需要确认</p>
                                </div>
                                <div class="modal-card">
                                    <h5>plan</h5>
                                    <p>只制定计划，不执行任何实际操作</p>
                                </div>
                            </div>
                        </div>
                        
                        <div class="modal-section">
                            <h4>可用工具权限</h4>
                            <ul class="modal-list">
                                <li><strong>Bash:</strong> <span>执行shell命令，支持通配符模式匹配</span></li>
                                <li><strong>Edit:</strong> <span>编辑现有文件内容</span></li>
                                <li><strong>Read:</strong> <span>读取文件内容</span></li>
                                <li><strong>Write:</strong> <span>创建新文件或覆写现有文件</span></li>
                                <li><strong>WebFetch:</strong> <span>获取网络内容和资源</span></li>
                                <li><strong>WebSearch:</strong> <span>执行网络搜索操作</span></li>
                                <li><strong>MultiEdit:</strong> <span>对单个文件执行多重编辑</span></li>
                                <li><strong>TodoWrite:</strong> <span>创建和管理任务列表</span></li>
                            </ul>
                        </div>

                        <div class="modal-highlight">
                            <strong>安全建议：</strong>建议在生产环境中使用 deny 规则明确禁止危险操作，如系统删除、权限提升等命令。
                        </div>
                    `
                },
                apiKeyHelper: {
                    title: 'API密钥获取脚本',
                    content: `
                        <div class="modal-section">
                            <h4>功能说明</h4>
                            <p>apiKeyHelper允许您配置一个自定义脚本来动态获取API密钥。这对于使用密钥管理工具或需要从安全存储中获取密钥的场景特别有用。</p>
                        </div>
                        
                        <div class="modal-section">
                            <h4>配置方式</h4>
                            <div class="modal-code-block">
                                <div class="modal-code-header">apiKeyHelper 配置示例</div>
                                <pre>{
  "apiKeyHelper": "security-cli get-api-key anthropic"
}</pre>
                            </div>
                        </div>
                        
                        <div class="modal-section">
                            <h4>常用场景</h4>
                            <div class="modal-grid">
                                <div class="modal-card">
                                    <h5>环境变量读取</h5>
                                    <p><code>"echo $ANTHROPIC_API_KEY"</code></p>
                                </div>
                                <div class="modal-card">
                                    <h5>密钥管理工具</h5>
                                    <p><code>"op read op://vault/anthropic/apikey"</code></p>
                                </div>
                                <div class="modal-card">
                                    <h5>AWS Secrets Manager</h5>
                                    <p><code>"aws secretsmanager get-secret-value --secret-id anthropic-key"</code></p>
                                </div>
                                <div class="modal-card">
                                    <h5>Azure Key Vault</h5>
                                    <p><code>"az keyvault secret show --vault-name vault --name api-key"</code></p>
                                </div>
                            </div>
                        </div>
                        
                        <div class="modal-section">
                            <h4>执行要求</h4>
                            <ul class="modal-list">
                                <li><strong>输出格式：</strong> <span>脚本必须将API密钥输出到stdout</span></li>
                                <li><strong>错误处理：</strong> <span>如果脚本失败，Claude Code会回退到其他认证方式</span></li>
                                <li><strong>执行权限：</strong> <span>确保脚本有执行权限且在PATH中可访问</span></li>
                                <li><strong>安全性：</strong> <span>避免在脚本中硬编码密钥</span></li>
                            </ul>
                        </div>

                        <div class="modal-highlight">
                            <strong>最佳实践：</strong>使用成熟的密钥管理工具（如1Password CLI、AWS CLI等）来确保密钥的安全存储和获取。
                        </div>
                    `
                },
                hooks: {
                    title: '工具执行钩子',
                    content: `
                        <div class="modal-section">
                            <h4>钩子系统</h4>
                            <p>Hooks允许您在Claude Code执行工具前后运行自定义脚本，实现日志记录、安全检查、环境准备等功能。</p>
                        </div>
                        
                        <div class="modal-section">
                            <h4>可用钩子类型</h4>
                            <div class="modal-grid">
                                <div class="modal-card">
                                    <h5>PreToolUse</h5>
                                    <p>在工具执行之前运行，可用于环境准备、权限检查等</p>
                                </div>
                                <div class="modal-card">
                                    <h5>PostToolUse</h5>
                                    <p>在工具执行之后运行，可用于清理、日志记录等</p>
                                </div>
                            </div>
                        </div>
                        
                        <div class="modal-section">
                            <h4>配置示例</h4>
                            <div class="modal-code-block">
                                <div class="modal-code-header">hooks 完整配置</div>
                                <pre>{
  "hooks": {
    "PreToolUse": {
      "Bash": "echo '[AUDIT] Executing bash command at $(date)'",
      "Edit": "echo '[INFO] About to edit file: $FILE_PATH'",
      "*": "echo '[TOOL] Using tool: $TOOL_NAME'"
    },
    "PostToolUse": {
      "Bash": "echo '[AUDIT] Bash command completed'",
      "Edit": "git add $FILE_PATH && echo '[GIT] File staged'",
      "*": "echo '[TOOL] Tool $TOOL_NAME finished'"
    }
  }
}</pre>
                            </div>
                        </div>
                        
                        <div class="modal-section">
                            <h4>支持的工具类型</h4>
                            <ul class="modal-list">
                                <li><strong>Bash:</strong> <span>shell命令执行</span></li>
                                <li><strong>Edit:</strong> <span>文件编辑操作</span></li>
                                <li><strong>Read:</strong> <span>文件读取操作</span></li>
                                <li><strong>Write:</strong> <span>文件写入操作</span></li>
                                <li><strong>WebFetch:</strong> <span>网络请求</span></li>
                                <li><strong>*:</strong> <span>通配符，匹配所有工具类型</span></li>
                            </ul>
                        </div>
                        
                        <div class="modal-section">
                            <h4>可用变量</h4>
                            <ul class="modal-list">
                                <li><strong>$TOOL_NAME:</strong> <span>当前执行的工具名称</span></li>
                                <li><strong>$FILE_PATH:</strong> <span>操作的文件路径（Edit/Read/Write）</span></li>
                                <li><strong>$COMMAND:</strong> <span>执行的命令内容（Bash）</span></li>
                                <li><strong>$PROJECT_ROOT:</strong> <span>项目根目录路径</span></li>
                            </ul>
                        </div>

                        <div class="modal-highlight">
                            <strong>注意：</strong>钩子脚本的执行时间会影响整体性能，建议保持脚本简洁高效。
                        </div>
                    `
                },
                forceLoginMethod: {
                    title: '强制登录方式',
                    content: `
                        <div class="modal-section">
                            <h4>登录方式控制</h4>
                            <p>forceLoginMethod允许您强制指定Claude Code使用特定的登录认证方式，覆盖默认的自动检测逻辑。</p>
                        </div>
                        
                        <div class="modal-section">
                            <h4>可用登录方式</h4>
                            <div class="modal-grid">
                                <div class="modal-card">
                                    <h5>claudeai</h5>
                                    <p>使用Claude.ai网站的会话令牌进行认证</p>
                                </div>
                                <div class="modal-card">
                                    <h5>console</h5>
                                    <p>使用Anthropic Console的API密钥进行认证</p>
                                </div>
                            </div>
                        </div>
                        
                        <div class="modal-section">
                            <h4>配置示例</h4>
                            <div class="modal-code-block">
                                <div class="modal-code-header">forceLoginMethod 配置</div>
                                <pre>{
  "forceLoginMethod": "console"
}</pre>
                            </div>
                        </div>
                        
                        <div class="modal-section">
                            <h4>使用场景</h4>
                            <ul class="modal-list">
                                <li><strong>企业环境：</strong> <span>强制使用console模式确保API密钥管理的一致性</span></li>
                                <li><strong>自动化脚本：</strong> <span>确保在CI/CD环境中使用稳定的认证方式</span></li>
                                <li><strong>团队协作：</strong> <span>统一团队成员的认证方式</span></li>
                                <li><strong>故障排除：</strong> <span>当自动检测失败时手动指定认证方式</span></li>
                            </ul>
                        </div>
                        
                        <div class="modal-section">
                            <h4>认证方式对比</h4>
                            <div class="modal-grid">
                                <div class="modal-card">
                                    <h5>Claude.ai 方式</h5>
                                    <p><strong>优点：</strong>易于设置，使用现有会话<br>
                                    <strong>缺点：</strong>会话可能过期，不适合自动化</p>
                                </div>
                                <div class="modal-card">
                                    <h5>Console 方式</h5>
                                    <p><strong>优点：</strong>稳定可靠，适合自动化<br>
                                    <strong>缺点：</strong>需要API密钥管理</p>
                                </div>
                            </div>
                        </div>

                        <div class="modal-highlight">
                            <strong>建议：</strong>在生产环境和自动化场景中使用console方式，在个人开发中可以使用claudeai方式以获得更便捷的体验。
                        </div>
                    `
                },
                env: {
                    title: '环境变量配置',
                    content: `
                        <div class="modal-section">
                            <h4>环境变量系统</h4>
                            <p>Claude Code支持丰富的环境变量来控制行为和集成外部服务。可以在settings.json的env字段中配置。</p>
                        </div>
                        
                        <div class="modal-section">
                            <h4>认证相关</h4>
                            <ul class="modal-list">
                                <li><strong>ANTHROPIC_API_KEY:</strong> <span>API密钥，用于直接API访问</span></li>
                                <li><strong>ANTHROPIC_AUTH_TOKEN:</strong> <span>自定义认证令牌，添加Bearer前缀</span></li>
                                <li><strong>AWS_BEARER_TOKEN_BEDROCK:</strong> <span>Bedrock API密钥认证</span></li>
                                <li><strong>ANTHROPIC_CUSTOM_HEADERS:</strong> <span>自定义请求头部信息</span></li>
                            </ul>
                        </div>
                        
                        <div class="modal-section">
                            <h4>模型配置</h4>
                            <ul class="modal-list">
                                <li><strong>ANTHROPIC_MODEL:</strong> <span>自定义模型名称</span></li>
                                <li><strong>ANTHROPIC_SMALL_FAST_MODEL:</strong> <span>用于后台任务的Haiku级模型</span></li>
                                <li><strong>CLAUDE_CODE_MAX_OUTPUT_TOKENS:</strong> <span>设置最大输出token数量</span></li>
                                <li><strong>MAX_THINKING_TOKENS:</strong> <span>强制设置模型思考token预算</span></li>
                            </ul>
                        </div>
                        
                        <div class="modal-section">
                            <h4>Bash控制</h4>
                            <ul class="modal-list">
                                <li><strong>BASH_DEFAULT_TIMEOUT_MS:</strong> <span>长时间运行bash命令的默认超时时间</span></li>
                                <li><strong>BASH_MAX_TIMEOUT_MS:</strong> <span>模型可设置的最大超时时间</span></li>
                                <li><strong>BASH_MAX_OUTPUT_LENGTH:</strong> <span>bash输出截断前的最大字符数</span></li>
                                <li><strong>CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR:</strong> <span>每次bash命令后返回原工作目录</span></li>
                            </ul>
                        </div>
                        
                        <div class="modal-section">
                            <h4>系统控制</h4>
                            <div class="modal-grid">
                                <div class="modal-card">
                                    <h5>更新控制</h5>
                                    <p><strong>DISABLE_AUTOUPDATER:</strong> 禁用自动更新功能</p>
                                </div>
                                <div class="modal-card">
                                    <h5>隐私控制</h5>
                                    <p><strong>DISABLE_TELEMETRY:</strong> 禁用Statsig遥测数据收集</p>
                                </div>
                                <div class="modal-card">
                                    <h5>错误报告</h5>
                                    <p><strong>DISABLE_ERROR_REPORTING:</strong> 禁用Sentry错误报告</p>
                                </div>
                                <div class="modal-card">
                                    <h5>网络控制</h5>
                                    <p><strong>CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC:</strong> 禁用非必要网络流量</p>
                                </div>
                            </div>
                        </div>
                        
                        <div class="modal-section">
                            <h4>MCP相关</h4>
                            <ul class="modal-list">
                                <li><strong>MCP_TIMEOUT:</strong> <span>MCP服务器启动超时时间（毫秒）</span></li>
                                <li><strong>MCP_TOOL_TIMEOUT:</strong> <span>MCP工具执行超时时间（毫秒）</span></li>
                                <li><strong>MAX_MCP_OUTPUT_TOKENS:</strong> <span>MCP工具响应允许的最大token数（默认25000）</span></li>
                            </ul>
                        </div>
                        
                        <div class="modal-section">
                            <h4>配置示例</h4>
                            <div class="modal-code-block">
                                <div class="modal-code-header">env 配置示例</div>
                                <pre>{
  "env": {
    "NODE_ENV": "development",
    "ANTHROPIC_MODEL": "claude-3-5-sonnet-20241022",
    "BASH_DEFAULT_TIMEOUT_MS": "30000",
    "DISABLE_TELEMETRY": "1",
    "MCP_TIMEOUT": "10000",
    "CLAUDE_CODE_DISABLE_TERMINAL_TITLE": "1"
  }
}</pre>
                            </div>
                        </div>
                    `
                }
            };
            
            const data = settingData[setting];
            if (data) {
                title.textContent = data.title;
                content.innerHTML = data.content;
                modal.style.display = 'block';
            }
        }

                 // 关闭弹窗
         document.addEventListener('DOMContentLoaded', function() {
             const configModal = document.getElementById('configModal');
             const settingModal = document.getElementById('settingModal');
             const closeBtns = document.querySelectorAll('.modal-close');
             
             closeBtns.forEach(btn => {
                 btn.onclick = function() {
                     configModal.style.display = 'none';
                     settingModal.style.display = 'none';
                 }
             });
             
             window.onclick = function(event) {
                 if (event.target === configModal) {
                     configModal.style.display = 'none';
                 }
                 if (event.target === settingModal) {
                     settingModal.style.display = 'none';
                 }
             }

             // 添加键盘ESC关闭功能
             document.addEventListener('keydown', function(event) {
                 if (event.key === 'Escape') {
                     configModal.style.display = 'none';
                     settingModal.style.display = 'none';
                 }
             });
         });

        // 导航栏滚动效果
        window.addEventListener('scroll', () => {
            const navbar = document.querySelector('.navbar');
            if (window.pageYOffset > 50) {
                navbar.style.background = 'rgba(255, 255, 255, 0.98)';
                navbar.style.boxShadow = '0 4px 20px rgba(0, 0, 0, 0.1)';
            } else {
                navbar.style.background = 'rgba(255, 255, 255, 0.95)';
                navbar.style.boxShadow = 'none';
            }
        });

        // 滚动动画
        const observerOptions = {
            threshold: 0.1,
            rootMargin: '0px 0px -50px 0px'
        };

        const observer = new IntersectionObserver((entries) => {
            entries.forEach(entry => {
                if (entry.isIntersecting) {
                    entry.target.style.animationPlayState = 'running';
                }
            });
        }, observerOptions);

        document.querySelectorAll('.fade-in').forEach(el => {
            observer.observe(el);
        });
    </script>
</body>
</html> 